﻿@model Bricks.Site.Models.ContractInfoView

@{
    ViewBag.Title = "PreviewCommonContractInfo";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/lang/zh-cn/zh-cn.js"></script>

<div class="frombox datagrid-body" style="padding-bottom: 5px;">
    <form id="contractInfo-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">合同单位名称</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="ContractUnitName" class="easyui-textbox" value="@Model.ContractUnitName" readonly />
                    </div>
                </td>
                <td class="th">
                    <div class="datagrid-cell">合同编号</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="ContractCode" class="easyui-textbox" value="@Model.ContractCode" readonly />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">合同名称</div>
                </td>
                <td class="td" colspan="2">
                    <div class="datagrid-cell">
                        <input name="ContractName" class="easyui-textbox" value="@Model.ContractName" readonly />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">计划开工日期</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="ScheduledStartDate" class="easyui-textbox" value="@Model.ScheduledStartDate" readonly />
                    </div>
                </td>
                <td class="th">
                    <div class="datagrid-cell">计划完工日期</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="ScheduledEndDate" class="easyui-textbox" value="@Model.ScheduledEndDate" readonly />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">项目总工期</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="ProjectPeriod" name="ProjectPeriod" class="easyui-textbox" value="@Model.ProjectPeriod" readonly />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">天</div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="rth">
                    <div class="datagrid-cell">合同金额</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="ContractMoney" class="easyui-textbox" value="@Model.ContractMoney" readonly />
                    </div>
                </td>
                <td class="th">
                    <div class="datagrid-cell">对应单位</div>
                </td>
                <td class="td" colspan="4">
                    <div class="datagrid-cell">
                        <input name="CorrespondenceUnitName" class="easyui-textbox" style="width: 405px" value="@Model.CorrespondenceUnitName" readonly />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">合同内容简介</div>
                </td>
                <td class="td" colspan="6">
                    <div class="datagrid-cell">
                        <textarea id="ContractContent" name="ContractContent">@Model.ContractContent</textarea>
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">附件</div>
                </td>
                <td class="td" colspan="6">
                    <div class="datagrid-cell">
                        @*<textarea name="Attachment" cols="57" rows="5" style="width:670px;" readonly>@Model.Attachment</textarea>*@
                        <a href='javascript:void(0)' class='easyui-linkbutton' onclick='$.Upload($("#hID").val(), "ContractManagement/AllContractList/Attachment")' data-options='plain:true,iconCls:"icon-blue_lego"'>附件操作</a>
                    </div>
                </td>
            </tr>
        </table>
        <input id="hID" name="ID" type="hidden" value="@Model.ID" />
        <input id="hPID" name="PID" type="hidden" value="@Model.PID" />
    </form>
</div>
